package cn.zs.supply;

import com.sun.tools.javac.util.Assert;

import org.springframework.util.AntPathMatcher;

public class AntPathMatcherTest {

    private AntPathMatcher pathMatcher = new AntPathMatcher();

    //@Test
    public void test() {
        pathMatcher.setCachePatterns(true);
        pathMatcher.setCaseSensitive(true);
        pathMatcher.setTrimTokens(true);
        pathMatcher.setPathSeparator("/");

       pathMatcher.match("a", "a");
       pathMatcher.match("a*", "ab");
        pathMatcher.match("a*/**/a", "ab/asdsa/a");
        pathMatcher.match("a*/**/a", "ab/asdsa/asdasd/a");


        pathMatcher.match("*", "a");
        pathMatcher.match("*/*", "a/a");
    }
}
